<!DOCTYPE html>
<!--
 When - HTML5 scrolling calendar (https://code.google.com/p/when/)
 Based on: Continuous Calendar (http://madebyevan.com/calendar/) by Evan Wallace
 License: MIT License (see below)

 Copyright (c) 2010 Evan Wallace
 Copyright (c) 2014 Ovidiu Mara

 Permission is hereby granted, free of charge, to any person
 obtaining a copy of this software and associated documentation
 files (the "Software"), to deal in the Software without
 restriction, including without limitation the rights to use,
 copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the
 Software is furnished to do so, subject to the following
 conditions:

 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
-->
<html manifest="when.appcache">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>when</title>
	<link rel="stylesheet" type="text/css" href="when.css">
	<link rel="icon" href="favicon.png" sizes="16x16" type="image/png">
	<link rel="icon" href="favicon32.png" sizes="32x32" type="image/png">
	<link rel="icon" href="favicon64.png" sizes="64x64" type="image/png">
	<link rel="icon" href="favicon128.png" sizes="128x128" type="image/png">
	<link rel="icon" href="favicon256.png" sizes="256x256" type="image/png">
	</head>
<body>

<script type="text/javascript" src="when.js"></script>

<div id="header">
	<span id="debug"></span>
	<a class="button" href="javascript:smoothScrollToToday()">Scroll to today</a>
	<a class="button" href="javascript:showHelp()">Help</a>
</div>

<div id="footerRight">
	<!--<div id="timers"></div>-->
	<table id="timerBox">
		<tbody id="timers">
		</tbody>
	</table>
	<div class="buttonBox">
		<a class="button" href="javascript:showHelp()">Help</a>
	</div>
</div>

<table id="calendar">
</table>

<div id="help">
	<div id="helpBox">
		<div class="boxTitle">Help</div>
		<ul>
			<li>To display this help window, press H.</li>
			<li>Navigation
				<ul>
					<li><span class="key">Scroll</span> to move forward or backward in time.</li>
					<li>To jump quickly between months, press <span class="key">PageDown</span>/<span class="key">PageUp</span>.</li>
					<li>To jump to today's date, press <span class="key">T</span>.</li>
				</ul>
			</li>
			<li>Editing events
				<ul>
					<li>Click on a day to add an event.</li>
					<li>To delete an event, delete its text.</li>
					<li>To change the color of an event, press one of:
						<ul>
							<li><span class="key">Alt+1</span> <span style="background-color:#CFE7FF">(blue)</span></li>
							<li><span class="key">Alt+2</span> <span style="background-color:#CFFFE7">(green)</span></li>
							<li><span class="key">Alt+3</span> <span style="background-color:#FFFFCF">(yellow)</span></li>
							<li><span class="key">Alt+4</span> <span style="background-color:#FFE7FF">(purple)</span></li>
							<li><span class="key">Alt+5</span> <span style="background-color:#FFBFBB">(red)</span></li>
						</ul>
					</li>
					<li>To toggle an all day event, press <span class="key">Alt+0</span>.</li>
					<li>To toggle a timer for an event, press <span class="key">Alt+T</span>.</li>
					<li>To duplicate an event for the next day, click it and press <span class="key">Alt+N</span>;
					for next week, press <span class="key">Alt+W</span>;
					for two weeks later, press <span class="key">Alt+B</span>. To also add a number suffix to the
					events, keep the <span class="key">Shift</span> key pressed while duplicating.</li>
				</ul>
			</li>
			<li>Sync/backup
				<ul>
					<li>You can save/load events to files; you must backup/transfer the files manually between your computers.</li>
					<li>To export all events to a file, press <span class="key">E</span>.</li>
					<li>To import events from a file, press <span class="key">I</span>.</li>
					<li>To delete the entire content of the calendar, press <span class="key">Ctrl+Alt+Shift+C</span>;
					this operation is irreversible.</li>
				</ul>
			</li>
			<li>Miscellaneous
				<ul>
					<li>To change the first day of the week to Sunday, press <span class="key">Ctrl+Alt+Shift+A</span>;
					repeating this action changes it back to Monday.</li>
				</ul>
			</li>
		</ul>
		<br/>
		<a href="https://code.google.com/p/when/">https://code.google.com/p/when/</a>
		<br/>
		<div class="buttonBox">
			<a class="button" href="javascript:hideHelp()">Close</a>
		</div>
	</div>
</div>

<div id="export">
	<div id="exportBox">
		<div class="boxTitle">Export calendar</div>
		Click &quot;Save to file&quot; below to export the calendar contents to a file.
		<textarea id="exportText"></textarea>
		<br/>
		<div class="buttonBox">
			<a class="button" id="exportLink" href="#">Save to file...</a>
			<a class="button" href="javascript:hideExport()">Close</a>
		</div>
	</div>
</div>

<div id="import">
	<div id="importBox">
		<div class="boxTitle">Import calendar</div>
		<ol>
			<li>Click on &quot;Choose file&quot; and open the file.</li>
			<li>Inspect the file contents in the editable box.</li>
			<li>Click on import to import the events. Warning: newer local versions of the same events will be overwritten!</li>
		</ol>
		<textarea id="importText"></textarea>
		<br/>
		<input type="file" id="importFile">
		<a class="button" href="javascript:doImport()">Import</a>
		<a class="button" href="javascript:hideImport()">Close</a>
	</div>
</div>

<noscript>Please enable JavaScript.&amp;nbsp; This calendar requires JavaScript to work.</noscript>

</body>
</html>
